﻿using System.Configuration;

namespace ManagedUIFlow.Infrastructure.Flows.Configuration
{
    public class WhenConfigurationElement : ConfigurationElement
    {
        [ConfigurationProperty("itis", IsRequired = false)]
        public string Action
        {
            get { return (string)base["itis"]; }
            set { base["itis"] = value; }
        }

        [ConfigurationProperty("then", IsRequired = false)]
        public string NavigateTo
        {
            get { return (string)base["then"]; }
            set { base["then"] = value; }
        }

        [ConfigurationProperty("user", IsRequired = false)]
        public string View
        {
            get { return (string)base["user"]; }
            set { base["user"] = value; }
        }

        [ConfigurationProperty("flow", IsRequired = false)]
        public string SubFlow
        {
            get { return (string)base["flow"]; }
            set { base["flow"] = value; }
        }       
    }
}